package com.crm.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zjd
 * @Title:
 * @Description:
 * @date 2021/4/210:54
 */
@Data
@ApiModel(value="CompanyForUserDTO", description="为公司分配用户")
public class CompanyForUserDTO {

    @NotNull(message = "必填字段不能为空")
    @Min(value = 1,message = "最小值不能为0")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @NotNull(message = "必填字段不能为空")
    @Min(value = 1,message = "最小值不能为0")
    @ApiModelProperty(value = "公司id")
    private Long companyId;

}
